<?php
include "classes/paginas.php";
$_class = new paginas();
$_class->id	= $_GET["id"];
$dados	= $_class->pega();

 ?>
<div>
<form action="acao/paginas.php?acao=editar" method="post">
  <p>Titulo<br />
      <input name="id" type="hidden" value="<?=$dados["id"]?>" />
      <input name="titulo" type="text" class="text-input medium-input datepicker" id="titulo" value="<?=$dados["titulo"]?>" />
      <br />
  <br />
  Texto<br />
  <textarea name="texto" id="texto" cols="45" rows="3"><?=$dados["texto"]?></textarea>

	<script type="text/javascript">
    var oFCKeditor = new FCKeditor( 'texto' ) ;
    oFCKeditor.BasePath = "../lib/fckeditor/" ;
    oFCKeditor.Width = "100%";
    //oFCKeditor.Height = "300";
    oFCKeditor.Height = "600";
    oFCKeditor.ReplaceTextarea() ;
    </script>
  </p>
  <p>
  

      <br />
      <input type="submit" class="button" value="Salvar altera&ccedil;&atilde;oes" />
  </p>
  </form>
</div>